package com.yuki.fwwb.Service;

import com.yuki.fwwb.DAO.TripsStationDAO;
import com.yuki.fwwb.Entity.Sjt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TripsStationService {
    @Autowired
    TripsStationDAO dao;
    public List<Sjt> findAllTripsStation(){
        List<Sjt> allTripsStation = dao.findAllTripsStation();
        for (Sjt s: allTripsStation) {
            s.setSta_in(s.getSta_in()+"A");
            s.setSta_out(s.getSta_out()+"B");
            System.out.println(s);
        }
        return allTripsStation;
    };


}
